<?php 
$name='HX';
$data=array();
for ($i=0;$i<100;$i++){
    $ids=$name.'1'.rand(2,9).'1'.rand(2,9);
    $data[$ids]=$ids;
}
ksort($data);
$j=1;
foreach ($data as $v){
    if ($j< 60){
        echo "INSERT INTO `xma` (`id`, `name`) VALUES (NULL, '".$v."');";
        echo "<br />";
    }
    $j++;
}

?>